<template>
	<view class="listAuthor">
		<view class="listAuthor-image">
			<image :src="item.avatar" mode="aspectFill"></image>
		</view>
		<view class="listAuthor-content">
			<view class="listAuthor-content__title">{{item.author_name}}</view>
			<view class="listAuthor-content__des">
				<view class="listAuthor-content__des-label">{{item.professional}}</view>
				<view class="listAuthor-content__des-info">
					<text>发帖 {{item.article_ids.length}}</text>
					<text>粉丝 {{item.fans_count}}</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props: {
			item: {
				type: Object,
				default () {
					return {}
				}
			}
		}
	}
</script>

<style lang="scss">
	.listAuthor{
		display: flex;
		padding: 20upx 0;
		margin: 0 20upx;
		border-radius: 10upx;
		box-sizing: border-box;
		border-bottom: 1px solid #F5F5F5;
		.listAuthor-image{
			flex-shrink: 0;
			width: 80upx;
			height: 80upx;
			overflow: hidden;
			image{
				width: 100%;
				height: 100%;
			}
		}
		.listAuthor-content{
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			padding-left: 20upx;
			width: 100%;
			.listAuthor-content__title{
				position: relative;
				padding-right: 60upx;
				font-size: 28upx;
				color: #333;
				font-weight: bold;
				line-height: 1.2;
			}
			.listAuthor-content__des{
				display: flex;
				justify-content: space-between;
				font-size: 24upx;
				.listAuthor-content__des-label{
					color: #666;
				}
				.listAuthor-content__des-info{
					color: #999;
					line-height: 1.5;
					text{
						&:first-child{
							margin-right: 20upx;
						}
					}
				}
			}
		}
	}
</style>
